#include "myhead.h"

struct threadpool  //用来表示线程池
{
	pthread_t *id;
	int threadnum;
};

//线程池的初始化
struct threadpool *init_pool(int num) //num表示你想创建多少个线程
{
	int i;
	struct threadpool *mypool=malloc();
	mypool->id=malloc(num*sizeof(pthread_t));
	mypool->threadnum=num;
	
	for(i=0; i<num; i++)
		pthread_create(&(id[i]),NULL,任务函数,参数);
}
int main()
{
	
}